package gov.kqqzyyy.monkey.clinicscreen.objects;

import java.util.Collections;
import java.util.List;

public class DoctorGroup {
    private int SH;
    private List<ClinicDoctor> list;

    public int getSH() {
        return SH;
    }

    public void setSH(int SH) {
        this.SH = SH;
    }

    public List<ClinicDoctor> getList() {
        return list;
    }

    public void setList(List<ClinicDoctor> list) {
        Collections.sort(list, (arg0, arg1) -> arg0.getSH() - arg1.getSH());
        this.list = list;
    }
}
